import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login.vue'  


Vue.use(Router)

export default new Router({
  routes: [
    {path: '/', 
    redirect:'/login'},  //访问/根路径时，重定向到/login

    { path: '/login',
    component: Login }
  ]
})
